<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'queryBookableRoomPeriod.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
    <link href="css/css-main.css" rel="stylesheet" type="text/css" />
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  
  </head>
  
  <body>
    
     <div class="timelist" align="center" style="background-color:#D2FFFF" 
         <s:if test="tableNo == null">
          id="<s:property value="roomNum"/>"
          </s:if>
          <s:else>
             id="<s:property value="tableNo"/>"
          </s:else>>               
           <p>&nbsp;</p>
              <table width="50%" border="0" >
                <tr>
                 
                  <td colspan="6" align="left"  height="30">请选择预订时段：
                  </td>
                </tr>
                 
                 <s:iterator value="results" status="e">
                   <s:if test="#e.index%3==0">
                     <tr>
                   </s:if>
                     <td width="5%" valign="middle"  height="30"><input type="checkbox" name="innerIndexs" value='<s:property value="results[#e.index].innerIndex"/>' id="innerIndexs" ></td>
                     <td  nowrap align="left" valign="middle"  height="30"><label ><s:date name="startTime" format="yy-MM-dd HH:mm"/>——</label><s:date name="endTime" format="yy-MM-dd HH:mm"/></td>
                   <s:if test="#e.index%3==2">
                     </tr>
                   </s:if>
                 </s:iterator>
                            </table>
              <table width="100%" border="0">
                <tr>
                  <td width="39%" align="right" height="40">单价：</td>
                  <td width="61%"><table border="0" cellpadding="0" cellspacing="0">
                    <tr >
                      <td style="padding:0px">
                       <s:if test="tableNo == null">
                           <s:property value="roomInfo。originalPricePerRoom"/>
                       </s:if>
                       <s:else>
                            <s:property value="tableNoInfo。originalPricePerTable"/>
                       </s:else>
                      
                      </td>
                      <td>元/小时</td>
                    </tr>
                  </table>
                </tr>
              </table>
            </div>
            <script type="text/javascript">
 function select(divId,boxname) {
	var f = document.getElementById(divId).getElementsByName("innerIndexs");
	for ( var i = 0; i < f.length; i++) {
		if (f[i].name == boxname) {
			f[i].checked = document.all.checkbox.checked;
		}

	}
}
   </script>
  </body>
</html>
